var ChartSettings = (function(){
	var containerID = "";
	var resetID = "";
	var chartTitle = "";
	var xAxisLabel = "";
	var yAxisLabel = "";
	var offset = 0.025;
	var xMin = 0;
	var xMax = 0;
	var yMin = 0;
	var yMax = 0;
	
	return {
		
		init: function(chartID, data){
			containerID = chartID;
			var norm_data = this.normalizeData(data);
			this.setXMin(0);
			this.setXMax(norm_data.nsamples);
			this.setYMin(norm_data.minimo);
			this.setYMax(norm_data.maximo);
		
		},
		normalizeData: function(data){
			if ((data.minimo = parseFloat(data.minimo)) - offset > 0) data.minimo-=offset;
			data.maximo = parseFloat(data.maximo) + 1;
			data.nsamples = parseFloat(data.nsamples);
			return data;
		},
		getContainerID: function(){
			return containerID;
		},
		setContainerID: function(id){
			containerID = id;
			return;
		},
		getResetID: function(){
			return resetID;
		},
		setResetID: function(id){
			resetID = id;
			return;
		},
		getChartTitle:function(){
			return chartTitle;
		},
		setChartTitle: function(title){
			chartTitle = title;
			return;
		},
		getXAxisLabel: function(){
			return xAxisLabel;
		},
		setXAxisLabel: function(label){
			xAxisLabel = label;
			return;
		},
		getYAxisLabel: function(){
			return yAxisLabel;
		},
		setYAxisLabel : function(label){
			yAxisLabel = label;
			return;
		},
		getOffset : function(){
			return offset;
		},
		setOffset : function(value){
			offset = value;
			return;
		},
		getXMin : function(){
			return xMin;
		},
		setXMin : function(value){
			xMin = value;
			return;
		},
		getXMax : function() {
			return xMax;
		},
		setXMax : function(value){
			xMax = value;
			return;
		},
		getYMin : function(){
			return yMin;
		},
		setYMin : function(value){
			yMin = value;
			return;
		},
		getYMax : function() {
			return yMax;
		},
		setYMax : function(value){
			yMax = value;
			return;
		}
	};
	
});